home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / smail-3.1.28 / contrib / smaillog / README < prev    next >
Encoding:
Text File  |  1992-09-20  |  1.9 KB  |  61 lines

  1. # @(#)contrib/smaillog/README    1.2 9/20/92 %U
  2.  
  3. Smail3 log file parser.  Copyright 1990, Jeff Beadles.  All rights reserved.
  4.         jeff@onion.pdx.com or  uunet!onion.pdx.com!jeff
  5.  
  6. Permission is granted to freely copy this program as long as it is not sold.
  7.  
  8. Source MUST be provided upon request, and this message must be kept on
  9. all copies of the program.
  10.  
  11.  
  12. What this program will do is simple.  It will take the smail3 logfile
  13. information, and produce a fairly human-readable report.  For example, it
  14. will take the smail3 logfile (/usr/spool/smail/log/logfile on my system)
  15. that looks like:
  16.  
  17.     12/24/90 00:33:55: [m0innd5-000NXgC] received
  18.     |         from: root
  19.     |      program: sendmail
  20.     |         size: 1263 bytes
  21.     12/24/90 00:33:56: [m0innd5-000NXgC] delivered
  22.     |           to: jeff
  23.     |      orig-to: real-jeff
  24.     |     director: user
  25.     |    transport: local
  26.     12/24/90 01:24:26: [m0io4L3-000NUrC] received
  27.     |         from: jeff@onion
  28.     |         host: onion
  29.     |     protocol: uucp
  30.     |      program: rmail
  31.     |      orig-id: <9208070242.AA0012r@onion.UUCP>
  32.     |         size: 2346 bytes
  33.     12/24/90 01:24:29: [m0io4L3-000NUrC] delivered
  34.     |          via: uunet
  35.     |           to: bar.har.edu!foo
  36.     |      orig-to: <foo@bar.har.edu>
  37.     |       router: paths
  38.     |    transport: uux
  39.  
  40. on stdin, and,  on stdout display:
  41.  
  42.     Processing 4 lines.  (Used 459 bytes.)
  43.     00:33:56: root => jeff
  44.     01:24:29: jeff@onion => uunet!bar.har.edu!foo
  45.  
  46. I use this as a part of my nightly system checker.  Anyway, it's something
  47. that I originally wrote for sendmail.  I've changed the field definitions
  48. to work with smail3.  Yea, this could be in AWK, but I was in a 'C' kinda
  49. of mood at the time.
  50.  
  51. This is provided as-is, and you can use it at your own risk.  There's no man
  52. page currently.  One of these days, I might even write one for it.
  53. Until then, "Use the source."  I call it like:
  54.  
  55. % smaillog < /usr/spool/smail/log/OLD/logfile.0 | mail jeff
  56.  
  57. Have fun,
  58.     -Jeff
  59. -- 
  60. Jeff Beadles        jeff@onion.pdx.com
  61.